# ### 加入购物车
#
# 请求网址:http://182.92.81.159:8080/wx/cart/add
# 请求方法:POST
# 请求头：
# Content-Type: application/json;charset=utf-8
# X-Litemall-Token:TOKEN
# 请求体：
# {"goodsId":1181000,"number":1,"productId":2}
# 返回数据：

import requests

resp = requests.post(url="http://192.168.11.128:8080/wx/cart/add",
                     headers={"Content-Type": "application/json;charset=utf-8",
                              "X-Litemall-Token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ0aGlzIGlzIGxpdGVtYWxsIHRva2VuIiwiYXVkIjoiTUlOSUFQUCIsImlzcyI6IkxJVEVNQUxMIiwiZXhwIjoxNzQ3NzM1MTMyLCJ1c2VySWQiOjEsImlhdCI6MTc0NzcyNzkzMn0._jFhnhcA6k7BiXnc4-OVHpQ0sjy_VpbEuaEKCdgkJbI"},
                     json={"goodsId": 1181000,"number": 1, "productId": 2})
print(resp.json())
